package models

func CreateBorud(cast BroudCast3) (BroudCast3, error) {
	res := db.Create(&cast)
	return cast, res.Error
}
func GetAnchorInfo(list BroudCast3) (BroudCast3, error) {
	var newBroud BroudCast3
	res := db.Where(list).First(&newBroud)
	return newBroud, res.Error
}
func GetAnchorAll(anchor AnchorList) ([]AnchorList, error) {
	var anchorAll []AnchorList
	res := db.Where(anchor).Find(&anchorAll)
	return anchorAll, res.Error
}
func CreateBarrage(barrage Barrage3) (Barrage3, error) {
	res := db.Create(&barrage)
	return barrage, res.Error
}
func GetBarrageAll(barrage Barrage3) ([]Barrage3, error) {
	var barrageAll []Barrage3
	res := db.Where(barrage).Find(&barrageAll)
	return barrageAll, res.Error
}
